package cn.bonoon.controllers.fmm;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.web.annotations.WithDialog;
import cn.bonoon.kernel.web.annotations.components.AsHidden;
import cn.bonoon.kernel.web.annotations.components.AsTabs;
import cn.bonoon.kernel.web.annotations.components.TabHome;
import cn.bonoon.kernel.web.annotations.components.TabItem;
import cn.bonoon.kernel.web.annotations.components.TabItem.TabItemType;
import cn.bonoon.kernel.web.annotations.components.TabPosition;
import cn.bonoon.kernel.web.annotations.form.FormDetail;
import cn.bonoon.kernel.web.annotations.form.PropertyDetail;

@WithDialog(width = 840, height = 580)
@FormDetail(value = 2, headWidth = 120)
@TabHome(name = "角色信息")
@AsTabs(tabPosition = TabPosition.LEFT, value = {
	@TabItem(name = "用户组", value = "groups.do", type = TabItemType.HREF),
	@TabItem(name = "登录账号", value = "accounts.do", type = TabItemType.HREF),
	@TabItem(name = "访问策略", value = "menus.do", type = TabItemType.HREF)
})
public class RoleDetail implements RoleDefine {

	@AsHidden
	private Long id;
	@AsHidden
	private String moduleKey;
	
	@PropertyDetail(value = 1, colspan = 1)
	@Cutoff(-1)
	private String name;
	
	@PropertyDetail(2)
	private String defaultRole;
	
	@PropertyDetail(3)
	@Cutoff(-1)
	private String roleKey;
	
	@PropertyDetail(4)
	private String creatorName;
	
	@PropertyDetail(5)
	private String createAt;
	
	@PropertyDetail(value = 6, colspan = 1)
	private String privileges;
	
	@PropertyDetail(value = 7, colspan = 1, height = 30)
	private String remark;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDefaultRole() {
		return defaultRole;
	}

	public void setDefaultRole(String defaultRole) {
		this.defaultRole = defaultRole;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getRoleKey() {
		return roleKey;
	}

	public void setRoleKey(String roleKey) {
		this.roleKey = roleKey;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getPrivileges() {
		return privileges;
	}

	public void setPrivileges(String privileges) {
		this.privileges = privileges;
	}

	public String getModuleKey() {
		return moduleKey;
	}

	public void setModuleKey(String moduleKey) {
		this.moduleKey = moduleKey;
	}

}
